package com.example.entity;

import io.swagger.v3.oas.annotations.media.Schema;

@Schema(name = "Notice", description = "评论信息")
public class Comments {
    @Schema(description = "主键ID")
    private Integer id;
    @Schema(description = "帖子ID")
    private Integer postId;
    @Schema(description = "用户ID")
    private Integer userId;
    @Schema(description = "评论内容")
    private String content;
    @Schema(description = "评论时间")
    private String createTime;

    @Schema(description = "用户头像")
    private String userAvatar;
    @Schema(description = "用户名")
    private String username;

    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPostId() {
        return postId;
    }

    public void setPostId(Integer postId) {
        this.postId = postId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}
